package com.learn.design.interfaceisolation.v2;

public class PettyGirl implements IGoodBodyGirl,IGreatTemperamentGirl{

    private String name;

    public PettyGirl setName(String name) {
        this.name = name;
        return this;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "PettyGirl{" +
                "name='" + name + '\'' +
                '}';
    }

    /**
     * 美女都有名字
     *
     * @param name
     */
    public PettyGirl(String name) {
        this.name = name;
    }

    /**
     * 脸蛋漂亮
     */
    @Override
    public void goodLooking() {
        System.out.println(this.name + "---脸蛋很漂亮!");
    }

    /**
     * 气质要好
     */
    @Override
    public void niceFigure() {
        System.out.println(this.name + "---气质非常好!");
    }

    /**
     * 身材要好
     */
    @Override
    public void greatTemperament() {
        System.out.println(this.name + "---身材非常棒!");
    }
}
